package com.huli.mapper;

import com.huli.domain.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 张庆阳
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2025-03-11 18:17:58
* @Entity com.huli.domain.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {

    String getPhone(String phone);

    boolean insertCaptcha(@Param("phone") String phone,@Param("captcha") Integer captcha);

    boolean login(@Param("phone") String phone,@Param("captcha") int captcha);

    /**
     * 插入新用户手机号
     * @param phone 手机号
     */
    void insertPhone(String phone);

    int findid(String phone);
}




